package com.dementors.ui.fragment;

import android.content.Intent;

import com.dementors.R;
import com.dementors.base.BaseFragment;
import com.dementors.ui.activity.LoginActivity;
import com.dementors.view.MyPageView;


/**
 * Created by Administrator on 2015/12/1 0001.
 */
public class FragmentShopping extends BaseFragment implements MyPageView.OnButtonCheckListener {
    private MyPageView mpv;
    @Override
    protected int provideContentViewId() {
        return R.layout.fragment_shopping;
    }

    @Override
    protected void initViews() {
        mpv= (MyPageView) view.findViewById(R.id.mpv_shopping);
    }


    @Override
    protected void initData() {
        initResigener();//设置监听事件
    }

    private void initResigener() {
        mpv.setOnButtonCheckListener(this);
    }


    @Override
    public void setOnButtonCheckListener() {
        Intent intent=new Intent(getActivity(), LoginActivity.class);
        startActivity(intent);
    }
}
